const koa=require('koa2');
const app=new koa();

app.use(require('koa-body')());

app.use(async ctx=>{
    let {headers,method,url,query}=ctx.request,{body}=ctx.request;
    ctx.body={
        req:{
            method,
            url,
            query,
            body
        }
    };
});
app.listen(3000,()=>{
   console.log('Axios port:3000',new Date().toLocaleString());
});